<?php
/**
 * Created by PhpStorm.
 * User: Da Xiong
 * Date: 2018/11/22
 * Time: 14:22
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class VideosCollect extends Model
{
    protected $table = 'videos_collect';
    protected $fillable = [
        'video_id','user_id','status','created_at','updated_at',
    ];
//    public $timestamps = false;
    protected $dates = ['created_at','updated_at'];

    public function video(){
        return $this->belongsTo('App\Models\Videos', 'video_id', 'id');
    }
}